use tokio::fs;

use crate::error::IoErr;



pub const DATA_PATH: &'static str = "./data";
pub const DB_PATH: &'static str = "./data/data.db";
pub const HTML_PATH: &'static str = "./data/web";
pub const WEB_ADDR: &'static str = "0.0.0.0:2221";

pub async fn init() -> Result<(), IoErr> {
    fs::create_dir_all(HTML_PATH).await
}


